from ai import chat

def ai_chat_record():
    import inmp441
    view = inmp441.record_buffer()
    msg = chat.audio_chat_buffer(view)
    print(msg)

def ai_chat_text():
    msg = chat.text_chat("give me a simple word")
    print(msg)

ai_chat_text()
